//========encoding:utf-8=========
/*
 * @describe:  三目运算符
 * @author:mhao
 * @copyright:chinasoft.cn
 * @date:2020年3月31日   下午11:23:45
 */
package edu.chinasoft.service;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import edu.chinasoft.domain.Application;
import edu.chinasoft.domain.Approval;
import edu.chinasoft.domain.PageUnitForApplication;
import edu.chinasoft.domain.Role;
import edu.chinasoft.domain.User;
import edu.chinasoft.mapper.ApprovalMapper;

public class ApprovalServiceImp implements ApprovalService {
	@Autowired
	@Qualifier("approvalMapper")
	private ApprovalMapper approvalMapper;
	private Logger logger = LoggerFactory.getLogger(ApprovalServiceImp.class);
	
	@Override
	public List<User> selectUserByRole() {
		logger.info("ApprovalServiceImp>>>selectUserByRole start ……");
		List userList = approvalMapper.selectUserByRole();
		logger.info("ApprovalServiceImp>>>selectUserByRole end ……");
		return userList;
	}

	@Override
	public boolean insertApproval(Approval approval) {
		// TODO Auto-generated method stub
		 logger.info("ApprovalServiceImp>>>insertApproval start ……");
		 boolean result = approvalMapper.insertApproval(approval);
		 logger.info("ApprovalServiceImp>>>insertApproval end ……");
		return false;
	}


}
